package com.hsped.exception_;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

/**
 * @author 王先锋
 * @version 1.0
 */
public class Exception01 {
    public static void main(String[] args) {
        System.out.println("hyt");
        List list = new ArrayList();
        list.add("1");
        list.add("2");
        list.add("3");
        System.out.println(list.indexOf(2));
        Collections.reverse(list);
        for(Object i: list){

            System.out.println(i);
        }
    }

} 
